﻿Imports Datos
Imports System.Collections


Public Class AccesoLogica


    Shared Sub Main()

    End Sub

    Public Shared Function getEstadoConexion() As Boolean

        Return AccesoDatos.getEstadoConexion()

    End Function


    Public Shared Function getTransaccionLocal(ByVal transaccion As Integer) As Integer

        Return AccesoDatos.obtenerTransaccionLocal(transaccion)

    End Function


    Public Shared Function getTransaccionEwave(ByVal transaccion As Integer) As Boolean

        Return AccesoDatos.obtenerTransaccionEwave(transaccion)

    End Function


    Public Shared Sub setCadenaConexion()

        Configuracion.setCadenaConexion()

    End Sub

    Public Shared Function getArrayItem() As ArrayList

        Return AccesoDatos.getArrayItems()

    End Function

    Public Shared Function getArrayItemNC() As ArrayList

        Return AccesoDatos.getArrayItemNC()

    End Function

    Public Shared Sub vaciarArrayItemNC()

        AccesoDatos.vaciarArrayItemNC()

    End Sub

    Public Shared Sub vaciarArrayItemTransaccion()

        AccesoDatos.vaciarArrayItemTransaccion()

    End Sub


    Public Shared Sub setTasaSC()

        AccesoDatos.setTasaSC()

    End Sub

    Public Shared Function getImporteTotalEntradas() As Double

        Return AccesoDatos.getImporteTotalEntradas()

    End Function

    Public Shared Function getTasaSC() As Double

        Return AccesoDatos.getTasaSC()

    End Function

    Public Shared Function calcularSC() As Double

        Return AccesoDatos.calcularSC()

    End Function


    Public Shared Function getNroPuntoVenta() As Integer

        Return Impresion.getNroPuntoVenta()

    End Function

    Public Shared Sub setTerminalIdEwave()

        AccesoDatos.setTerminalIdEwave()

    End Sub

    Public Shared Function getTerminalIdEwave() As String

        Return AccesoDatos.getTerminalIdEwave()

    End Function



    Public Shared Function validarTerminal(ByVal t As String) As String

        Return AccesoDatos.validarTerminal(t)

    End Function

    Public Shared Function validarNivelUsuario(ByVal usuario As String) As Integer

        Return AccesoDatos.validarNivelUsuario(usuario)

    End Function

    Public Shared Sub setUsuarioActivo(ByVal usuario As String)

        AccesoDatos.setUsuarioActivo(usuario)

    End Sub

    Public Shared Function getUsuarioActivo() As String

        Return AccesoDatos.getUsuarioActivo()

    End Function


    Public Shared Function setParametrosImpresora() As Boolean

        Return Impresion.setParametrosImpresora()

    End Function


    Public Shared Function imprimir_Cierre_X() As Boolean

        Return Impresion.imprimir_Cierre_X()

    End Function

    Public Shared Function imprimir_Cierre_Z() As Boolean

        Return Impresion.imprimir_Cierre_Z()

    End Function

    Public Shared Function imprimir_Ticket(ByVal p As String) As Boolean

        Return Impresion.imprimirTicket(p)

    End Function

    Public Shared Function buscarTicketNC(ByVal pvOriginal As Integer, ByVal ticketOriginal As String) As Boolean

        Return AccesoDatos.buscarTicketNC(pvOriginal, ticketOriginal)

    End Function

    Public Shared Function imprimirNotaCredito(ByVal ticketOriginal As String, ByVal pvOriginal As Integer) As Boolean

        Return Impresion.imprimirNotaCredito(ticketOriginal, pvOriginal)

    End Function

    Public Shared Function quitarSeparadorDecimal(ByVal c As String) As String

        Return Impresion.quitarSeparadorDecimal(c)

    End Function

    Public Shared Function validarsuma(ByVal fecha As Date, ByVal pv As Integer) As String

        Return AccesoDatos.validarsumaScharge(fecha, pv)

    End Function


End Class
